package com.guodu.dao;

import java.util.List;

import com.guodu.entity.UserInfo;
import com.guodu.vo.UserInfoQueryVo;

public interface UserInfoDao {
	UserInfo findByLoginName(String loginName);
	UserInfo findById(Long userId);
	public int checkRole(String unitsId);
	public int checkUnitsId(Long unitsId);
	
	public List<UserInfo> findByVo(UserInfoQueryVo userInfoQueryVo,int curPage, int pageSize);
	public int findSizeByVo(UserInfoQueryVo userInfoQueryVo);
	
	public int checkLoginName(String loginName);
	public void save(UserInfo userInfo);
	public void update(UserInfo userInfo);
	
	public List<UserInfo> findUserById(Long unitsId);
	
	
	
}
